<?php

namespace App\Http\Controllers\Admin;

use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use Illuminate\View\View;

class PublicController extends Controller
{

    public function login(Request $request)
    {
        if($request->isMethod('post')){
            return redirect()->route('index');
        }else{
            return view('admin.public.login');
        }
    }

    public function logout(): View
    {
        $res = [
            'menu_list' => []
        ];
        return view('admin.index.main', $res);
    }

}
